package week06member.Strategy;

public class CartService {
    private MemberStrategy strategy;



    public  double calcPrice(double price,String memberId){
        this.strategy = new IntermediaMember();
        return strategy.calcuPrice(price);
    }
    public static void main(String[] args){
        CartService cartService = new CartService();
        double total =cartService.calcuPrice(89.7);
        System.out.println("total"+total);

    }
}
